home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / devices / lpdev.zoo / Makefile < prev    next >
Encoding:
Makefile  |  1993-08-24  |  1.6 KB  |  83 lines

  1. #
  2. # Makefile for lpdev, lpflush and the corresponding manpages.
  3. # Everything must be compiled with 16-bit integers.
  4. #
  5.  
  6. CC     = gcc
  7. AS     = gcc-as
  8. ZOO    = zoo
  9.  
  10. CFLAGS = -mshort -Wall $(OPTIM)
  11. LFLAGS = -mshort -s
  12. OPTIM  = -O2 -fomit-frame-pointer
  13.  
  14. all: programs manpages
  15.  
  16. #
  17. # The executables. On Minix partitions we have to set their 'x' bit because
  18. # older versions of the Gcc won't do it automatically. The 'makefast'
  19. # utility sets the fastload bit of the executables; if you don't have it
  20. # you can ignore it, or use 'toglclr' or 'prgflags' instead.
  21. #
  22.  
  23. OBJ1   = lpdev.o centr.o
  24. LPDEV  = lpdev.ttp
  25.  
  26. OBJ2   = lpflush.o
  27. LPFLS  = lpflush.ttp
  28.  
  29. programs: $(LPDEV) $(LPFLS)
  30.  
  31. $(LPDEV): $(OBJ1)
  32.     $(CC) -o $(LPDEV) $(OBJ1) $(LFLAGS)
  33.     chmod +x $(LPDEV)
  34.     makefast $(LPDEV)
  35.  
  36. $(LPFLS): $(OBJ2)
  37.     $(CC) -o $(LPFLS) $(OBJ2) $(LFLAGS)
  38.     chmod +x $(LPFLS)
  39.     makefast $(LPFLS)
  40.  
  41. clean:
  42.     rm -f *.o *.ttp *.asc
  43.  
  44. #
  45. # Man pages. The .asc files are already provided in the archive, so
  46. # you probably won't need this rules.
  47. #
  48.  
  49. manpages: lpdev.asc lpflush.asc
  50.  
  51. lpdev.asc: lpdev.8
  52.     cawf -man -fn lpdev.8 > lpdev.asc
  53.  
  54. lpflush.asc: lpflush.1
  55.     cawf -man -fn lpflush.1 > lpflush.asc
  56.  
  57. #
  58. # Dependencies
  59. #
  60.  
  61. lpdev.o : lpdev.c lpdev.h filesys.h atarierr.h
  62. centr.o : centr.s
  63. lpflush.o: lpflush.c lpdev.h filesys.h atarierr.h
  64.  
  65. #
  66. # Archiving
  67. #
  68.  
  69. SOURCES = \
  70.     atarierr.h filesys.h COPYING \
  71.     Makefile README lpdev.8 lpflush.1 \
  72.     centr.s lpdev.h lpdev.c lpflush.c
  73.  
  74. OTHER_FILES = \
  75.     $(LPDEV) lpdev.asc \
  76.     $(LPFLS) lpflush.asc
  77.  
  78. ARCHIVE_DIR = /h/Archives
  79.  
  80. archive:
  81.     $(ZOO) aunhP: Lpdev $(SOURCES) $(OTHER_FILES)
  82.     cp -a Lpdev.zoo $(ARCHIVE_DIR)
  83.